import http from "@/request"

export function getSofts () {
    return http.get("/softs")
}

export function installSoft (name, version) {
    return http.post("/soft-install/" + name + "/" + version)
}

export function uninstallSoft(name, version) {
    return http.post("/soft-uninstall/" + name + "/" + version)
}

export function recommendSoft(name, version, recommend) {
    return http.post("/soft-recommend/" + name + "/" + version + "/" + recommend)
}

export function startSoft(name, version) {
    return http.post("/soft-start/" + name + "/" + version)
}

export function stopSoft(name, version) {
    return http.post("/soft-stop/" + name + "/" + version)
}